home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Telecommunications & Multimedia Encyclopedia
/
Jones Telecommunications and Multimedia Encyclopedia (Jones)(1996).ISO
/
mac
/
ENCYCLOP
/
EXIT.DIR
/
00001_Script_1
next >
Wrap
Text File
|
1996-01-10
|
1KB
|
68 lines
-----------------------------
-- startMovie handler
on startMovie
Init
end startMovie
-----------------------------
-- stopMovie handler
on stopMovie
global gExitWindow
if objectP (gExitWindow) then
forget gExitWindow
end if
end stopMovie
--------------------------
-- Init
on Init
global gButtonClicked, gExitWindow
set gButtonClicked = 0
end Init
----------------------------
-- ButtonHandler
on ButtonHandler iSprite, iCastNum
global gButtonClicked
set gButtonClicked = 0
repeat while ( rollover (iSprite) )
if the mouseDown then
set tmpFlag = 1
set the castnum of sprite iSprite to iCastNum + 2
updateStage
repeat while the mouseDown
if rollover (iSprite) then
--do nothing
else
set tmpFlag = 0
exit repeat -- checks to see if mouse is off the coordinates
end if
end repeat
else
set the castnum of sprite isprite to icastnum + 1
updatestage
end if
updatestage
if tmpFlag = 1 then
set gButtonClicked = 1
exit repeat
end if
end repeat
set the castnum of sprite iSprite to iCastNum
updatestage
end ButtonHandler